package com.lzl.decorator.v2;

public class DecoratorTest {
    public static void main(String[] args) {
        INavBar iNavBar = new BaseNavBar();
        System.out.println(iNavBar.getNavItems());

        iNavBar = new VIPNavBarDecorator(iNavBar);
        System.out.println(iNavBar.getNavItems());

        iNavBar = new AdminNavBarDecorator(iNavBar);
        System.out.println(iNavBar.getNavItems());
    }
}
